home *** CD-ROM | disk | FTP | other *** search
/ Aminet 21 / Aminet 21 (1997)(GTI - Schatztruhe)[!][Oct 1997].iso / Aminet / misc / emu / iecutil.lha / inc / exec / io.h < prev    next >
Encoding:
Text File  |  1997-08-24  |  1.8 KB  |  60 lines

  1. {$ifndef EXEC_IO_H}
  2. CONST EXEC_IO_H = 0;
  3. {$ifndef EXEC_PORTS_H;incl"exec/ports.h";endif}
  4. {$ifndef EXEC_DEVICES_H;incl"exec/devices.h";endif}
  5. TYPE p_IORequest = ^IORequest;
  6.      IORequest = record
  7.                    io_Message: Message;
  8.                    io_Device: p_Device;
  9.                    io_Unit: p_Unit;
  10.                    io_Command: Word;
  11.                    io_Flags: Byte;
  12.                    io_Error: Short
  13.                  end;
  14.      p_IOStdReq = ^IOStdReq;
  15.      IOStdReq = record
  16.                   io_Message: Message;
  17.                   io_Device: p_Device;
  18.                   io_Unit: p_Unit;
  19.                   io_Command: Word;
  20.                   io_Flags: Byte;
  21.                   io_Error: Short;
  22.                   io_Actual, io_Length: Long;
  23.                   io_Data: Ptr;
  24.                   io_Offset: Long
  25.                 end;
  26.      p_IOExtTD = ^IOExtTD;
  27.      IOExtTD = record
  28.                  iotd_Req: IOStdReq;
  29.                  iotd_Count, iotd_SecLabel: Long
  30.                end;
  31. CONST DEV_BEGINIO = -30;
  32.       DEV_ABORTIO = -36;
  33.       IOB_QUICK = 0;
  34.       IOF_QUICK = $1;
  35.       CMD_INVALID = 0;
  36.       CMD_RESET = 1;
  37.       CMD_READ = 2;
  38.       CMD_WRITE = 3;
  39.       CMD_UPDATE = 4;
  40.       CMD_CLEAR = 5;
  41.       CMD_STOP = 6;
  42.       CMD_START = 7;
  43.       CMD_FLUSH = 8;
  44.       CMD_NONSTD = 9;
  45. {$endif}
  46. {$ifndef EXEC_IO_LIB }
  47. Const EXEC_IO_LIB = 0;
  48. Library SysBase:
  49. -456: Function DoIO(a1: Ptr): Long;
  50. -462: Procedure SendIO(a1: Ptr);
  51. -468: Function CheckIO(a1: Ptr): Long;
  52. -474: Procedure WaitIO(a1: Ptr);
  53. -480: Procedure AbortIO(a1: Ptr);
  54. -654: Function CreateIORequest(a0: p_MsgPort;d0: long): p_IOStdReq;
  55. -654: Function CreateIOTDRequest(a0: p_MsgPort;d0: long): p_IOExtTD;
  56. -660: Procedure DeleteIORequest(a0: p_IOStdReq);
  57. -660: Procedure DeleteIOTDRequest(a0: p_IOExtTD)
  58. end;
  59. {$endif}
  60.